/**
** Created by Kstar on 2022/1/12.
**/

//

#ifndef HELLOWORLD_HUMAN_H
#define HELLOWORLD_HUMAN_H


#include "Animal.h"

#define debug(a) cout<<(a)<<endl;
#define debug2(a, b) cout<<(a)<<","<<(b)<<endl;
#define debug3(a, b, c) cout<<(a)<<","<<(b)<<","<<(c)<<endl;


class Human:virtual public Animal {
private:
    //吸引力，繁殖成功的概率
    int attraction;
    string name;
public:
    friend  bool reproduction(Human human1 ,Human human2);//判断是否繁殖,友员函数
    Human(int cx, int cy, int cTime, int cspeed, int csex, int catk, int clife,
          int cendurance, int cattraction,string ctag);
    Human(int cx, int cy, int cTime, int cspeed, int csex, int catk, int clife,
          int cendurance, int cattraction,string cname,string ctag);
    int getAttraction();
    bool production(Human human1);
    string getName();
    void setName(string cname);
    void printMe();

};
bool reproduction(Human human1 ,Human human2);//判断是否繁殖,友员函数


#endif //HELLOWORLD_HUMAN_H
